package com.assignwork.entity.pc;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ClassName pcShipInfoEntering
 * @Description
 * @Author sl
 * @Date 2023/10/16 9:20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "船舶信息预录入", description = "")
@TableName("pc_ship_info_entering")
public class PcShipInfoEntering extends TenantEntity implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "主键")
    private Long id;
    @ApiModelProperty(name = "船名", notes = "")
    private String shipName;
    @ApiModelProperty(name = "作业公司", notes = "")
    private String workCompanyKey;
    @ApiModelProperty(name = "imo", notes = "")
    private String imo;
    @ApiModelProperty(name = "航次", notes = "")
    private String voyage;
    @ApiModelProperty(name = "代理公司", notes = "")
    private String agencyCompany;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "抵口时间")
    private LocalDateTime arriveTime;

    @ApiModelProperty(name = "货类", notes = "")
    private String cargoTypeName;
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @ApiModelProperty(name = "船长", notes = "")
    private BigDecimal shipLength;
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @ApiModelProperty(name = "船宽", notes = "")
    private BigDecimal shipWidth;
    @ApiModelProperty(name = "进出口", notes = "进出口")
    private String ie;
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @ApiModelProperty(name = "吃水", notes = "")
    private BigDecimal draft;
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    @ApiModelProperty(name = "载货量（吨）", notes = "")
    private BigDecimal cargoDeadWeight;
    @ApiModelProperty(name = "排船货类", notes = "排船货类")
    private String cargoTypePc;
    @ApiModelProperty(name = "船舶信息", notes = "进出口")
    private String shipInfo;
    @ApiModelProperty(name = "备注", notes = "进出口")
    private String remark;
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    @ApiModelProperty(name = "是否有排船计划", notes = "是否有排船计划")
    private Integer isPcPlan;
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    @ApiModelProperty(name = "当前船舶id")
    private Long berthId;
}



























